<?php

 /*** error reporting on ***/
 error_reporting(E_ALL);

 /*** define the site path ***/
 $site_path = realpath(dirname(__FILE__));
 define ('__SITE_PATH', $site_path);
/*** include the config.php file ***/
 include 'Includes/Config.php'; 
/*** include the init.php file ***/
 include 'Includes/Init.php';

 /*** load the router ***/
 $hook->router = new Router($hook);

 /*** set the controller path ***/
 $hook->router->setPath (__SITE_PATH . '/Controller');

 /*** load up the template ***/
 $hook->template = new Template($hook);

 /*** load the controller ***/
 $hook->router->loader();

?>
